		$(function(){
				 $.ajax({
	    	    type:"post",
	    	    url:basePath+"borer/initializationBorer",
	    	    dataType:"json",
				cache:false, 
       			async:false,
	    	    success:function(data){
    	         	$("#balanc").html(data.financial.balance);
    	         	$("#balance").val(data.financial.balance);
    	         	$("#recorder").val(data.financial.recorder);
    	         	$("#recorder_name").val(data.financial.recorder_name);
    	         	if(data.financial.balance>1500){
    	         	$("#stat").html("富足");
    	         	}else if(data.financial.balance>1000){
    	         	$("#stat").html("小康");
    	         	}else if(data.financial.balance>500){
    	         	$("#stat").html("贫穷");
    	         	}else if(data.financial.balance>100){
    	         	$("#stat").html("吃土");
    	         	}else{
    	         		$("#stat").html("GG");
    	         	}
	    	    },error:function(){
	    	    }
	    	  });
		
		});
			function choosePN(){
			  if(confirm("本次金额类型为收入点击确定，支出则取消！"))
      		  {
         		 $("#money").val("+");
         		
       			}
       		 else
        		{
         	  $("#money").val("-");
        	}
			}
			function back(){
				history.go(-1);
			}
			
			function saveinfo(){
			
			 $.ajax({
	    	    type:"post",
	    	    url:basePath+"borer/saveinfo",
	    	    data:$("#form").serialize(),
	    	    dataType:"text",
       			async:false,
	    	    success:function(data){
    	         	if(data == "success"){
    	         		alert("保存成功！");
    	         		location.href="../static/view/index.html";
    	         	}else{
    	         		alert(data);
    	         	}
	    	    },error:function(){
	    	    }
	    	  });
			}
			
			function toborerDetail(){
				 location.href="../borer/borerDetail";
				
			}